<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<table>
	<tr>
		<td>课程名</td> 
		<td>开始时间</td>
		<td>结束时间</td>
	</tr>
	<?php 
		include("module.php");
		
		$result = mysql_query("select * from course");
		
		while($row = mysql_fetch_array($result)) {
			echo "<tr><td>" . $row["name"] . "</td><td>" . $row["startdate"] . "</td><td>" . $row["enddate"] . "</td></tr>";
			
		}
	?>
</table>

<input type="button" type="text" value="添加课程" onclick="location.href='addcourse.php'">


</body>
</html>